package com.dw.entity;

import java.io.Serializable;

/**
 * @Description 用户实体类
 * @Author dw
 * @Date 2019/12/24 16:41
 * @Version 1.0
 **/
public class User implements Serializable {

  /**
   用户账号
   */
  private String userId;
  /**
   用户姓名
   */
  private String userName;
  /**
   用户性别
   */
  private String userGender;
  /**
   登录密码
   */
  private String passWord;
  /**
  所属部门：0:管理员部，1：经理部
   */
  private Integer depId;
  /**
   权限：0(默认):普通员工  1：主管  2：经理  3：系统管理员
   */
  private Integer authority;

  /**
     所属部门
   */
 private Department dep;
 /**
    联系方式
  */
 private String tel;

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Department getDep() {
    return dep;
  }

  public void setDep(Department dep) {
    this.dep = dep;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getUserGender() {
    return userGender;
  }

  public void setUserGender(String userGender) {
    this.userGender = userGender;
  }


  public String getPassWord() {
    return passWord;
  }

  public void setPassWord(String passWord) {
    this.passWord = passWord;
  }


  public Integer getDepId() {
    return depId;
  }

  public void setDepId(Integer depId) {
    this.depId = depId;
  }


  public Integer getAuthority() {
    return authority;
  }

  public void setAuthority(Integer authority) {
    this.authority = authority;
  }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", userGender='" + userGender + '\'' +
                ", passWord='" + passWord + '\'' +
                ", depId=" + depId +
                ", authority=" + authority +
                ", dep=" + dep +
                ", tel='" + tel + '\'' +
                '}';
    }
}
